<div id="topInfo">
    <? if (full(View::data('errors'))): ?>
        <div class="error">
        <? if (is_array(View::data('errors'))): ?>
            <ul>
            <? foreach (View::data('errors') as $error): ?>
                <li><?= $error ?></li>
            <? endforeach; ?>
            </ul>
        <? elseif (is_scalar(View::data('errors'))): ?>
        <?= View::data('errors') ?>
        <? endif; ?>
            
                </div>

    <? endif; ?>
                    <!--errorsssssssssss-->
    <? if (full(View::data('messages'))): ?>

                        <div class="messages">
        <? if (is_array(View::data('messages'))): ?>
                            <ul>
            <? foreach (View::data('messages') as $message): ?>
                                <li><?= $message ?></li>
            <? endforeach; ?>
                            </ul>
        <? elseif (is_scalar(View::data('messages'))): ?>
        <?= View::data('messages') ?>
        <? endif; ?>
                                </div>
    <? endif; ?>
</div>